From: Chong Yidong Date: Thu, 21 Oct 2010 17:27:32 +0000 (-0400) Subject: * insdel.c (prepare_to_modify_buffer): Don't set X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~6012 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a8eb50cf31734c0d0cf0633455fd3a1fa948ca5a;p=emacs.git * insdel.c (prepare_to_modify_buffer): Don't set saved-region-selection if modification hooks are disabled. --- diff --git a/src/ChangeLog b/src/ChangeLog index d2fd0b48e3c..1dda938238a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-10-21 Chong Yidong + + * insdel.c (prepare_to_modify_buffer): Don't set + saved-region-selection if modification hooks are disabled. + 2010-10-19 Chong Yidong * cmds.c (Fdelete_char): Doc fix. diff --git a/src/insdel.c b/src/insdel.c index abe6f350585..ff380ada192 100644 --- a/src/insdel.c +++ b/src/insdel.c @@ -2051,6 +2051,7 @@ prepare_to_modify_buffer (EMACS_INT start, EMACS_INT end, /* If `select-active-regions' is non-nil, save the region text. */ if (!NILP (current_buffer->mark_active) + && !inhibit_modification_hooks && XMARKER (current_buffer->mark)->buffer && NILP (Vsaved_region_selection) && (EQ (Vselect_active_regions, Qonly)